#if !defined(AFX_PRINTCHARTVIEW_H__934B6E59_5504_4472_8F83_687899D15D8A__INCLUDED_)
#define AFX_PRINTCHARTVIEW_H__934B6E59_5504_4472_8F83_687899D15D8A__INCLUDED_

#if _MSC_VER > 1000
#pragma once
#endif // _MSC_VER > 1000

//*******************************************************************************
// COPYRIGHT NOTES
// ---------------
// This is a sample for BCGControlBar Library Professional Edition
// Copyright (C) 1998-2016 BCGSoft Ltd.
// All rights reserved.
//
// This source code can be used, distributed or modified
// only under terms and conditions 
// of the accompanying license agreement.
//*******************************************************************************
//
// PrintChartView.h : header file
//

/////////////////////////////////////////////////////////////////////////////
// CPrintChartView view

class CPrintChartView : public CBCGPChartView
{
protected:
	CPrintChartView();           // protected constructor used by dynamic creation
	DECLARE_DYNCREATE(CPrintChartView)

// Attributes
public:
	BOOL m_bIsReady;

// Operations
public:

// Overrides
	// ClassWizard generated virtual function overrides
	//{{AFX_VIRTUAL(CPrintChartView)
	public:
	virtual void OnInitialUpdate();
	//}}AFX_VIRTUAL

	virtual void UpdateChartColorTheme(int nTheme, BOOL bIsDarkTheme)
	{
		if (GetChartCtrl() == NULL)
		{
			return;
		}

		CBCGPChartVisualObject* pChart = GetChartCtrl()->GetChart();
		if (pChart != NULL)
		{
			if (nTheme < 0)
			{
				pChart->SetColors(theApp.GetCustomTheme(nTheme), bIsDarkTheme);
			}
			else
			{
				pChart->SetColors((CBCGPChartTheme::ChartTheme)nTheme, bIsDarkTheme);
			}
		}
	}

// Implementation
protected:
	virtual ~CPrintChartView();
#ifdef _DEBUG
	virtual void AssertValid() const;
	virtual void Dump(CDumpContext& dc) const;
#endif

	// Generated message map functions
protected:
	//{{AFX_MSG(CPrintChartView)
	afx_msg void OnChartCopy();
	afx_msg void OnChartExport();
	//}}AFX_MSG
	afx_msg void OnUpdateAnimationStyleCombo(CCmdUI* pCmdUI);
	DECLARE_MESSAGE_MAP()
};

/////////////////////////////////////////////////////////////////////////////

//{{AFX_INSERT_LOCATION}}
// Microsoft Visual C++ will insert additional declarations immediately before the previous line.

#endif // !defined(AFX_PRINTCHARTVIEW_H__934B6E59_5504_4472_8F83_687899D15D8A__INCLUDED_)
